/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nxtgeninventorysystem.View.Dialog;

import java.util.HashMap;
import javax.swing.Action;
import javax.swing.DefaultComboBoxModel;
import nxtgeninventorysystem.View.Gui;

/**
 *
 * @author MSI
 */
public abstract class GuiDialog extends javax.swing.JDialog {

    public GuiDialog(java.awt.Frame parent) {
        super(parent);
        initialize();
        setModal(true);
    }

    public void resetFields() {
        //none if there are no fields
    }

    public void refreshComboBoxes(HashMap <Gui.ComboBoxType, DefaultComboBoxModel> models) {

    }

    protected abstract void initialize();

    public void setOkAction(Action action) {
        
    }

}
